import request from '@/utils/request'

// 列表page
export function getList(form, pageSize, currentPage) {
  const data = {
    param: form,
    pageSize: pageSize,
    pageNo: currentPage
  }
  return request.post('/sq/allotStorage/page', data)
}
// 列表详情
export function detailById(id) {
  return request.get(`/sq/allotStorage/detail/${id}`)
}
// 保存
export function save(params) {
  return request.post(`/sq/allotStorage/qr`,params)
}
// 列表详情
export function getInfo(id) {
  return request.get(`/sq/allotStorage/info/${id}`)
}
// 确认出库
export function outStockOk(id) {
  return request.get(`/sq/allotStorage/outStock/${id}`)
}
// 列表详情
export function getStorAndSite(storageId,storageSiteId) {
  return request.get(`/sq/inventory/findByStorageAndSite/${storageId}/${storageSiteId}`)
}
